// pages/webview/webview.js
const app = getApp();
Page({

  data: {
    url: ""
  },
  onLoad: function (options) {
    console.log("options",options)
    if(options.url) {
      this.setData({url: options.url});
    }
  },
  onReady: function () {
  },
  onShow: function () {
    let v = this;
    if(app.globalData.linkUrl) {
      v.setData({url: app.globalData.linkUrl});
    }
  },
  binderror: function (ev) {
    console.log('binderror',ev);
    wx.navigateBack({ delta: 1});
  },
  bindload: function (ev) {
    console.log('bindload',ev);
    //wx.navigateBack({ delta: 1});
  },
  bindmessage: function (ev) {
    console.log('bindmessage',ev);
    //wx.navigateBack({ delta: 1});
  },
  onHide: function () {
  },
  onUnload: function () {
  },
  onPullDownRefresh: function () {
  },
  onReachBottom: function () {
  },
  onShareAppMessage: function () {
  }
})